home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Magazines / HDUdec / Prg / PXSE.lha / ProjectX-SE / Install-ProjectX_SE < prev    next >
Encoding:
Text File  |  1997-10-18  |  2.1 KB  |  93 lines

  1.  
  2. ;----------------------------
  3.  
  4. ;try to figure out a place where the user usually installs his games
  5. (if (exists "Games:" (noreq) )
  6.     (set @default-dest "Games:")
  7.     (if (exists "SYS:Games" (noreq) )
  8.         (set @default-dest "SYS:Games")
  9.         (if (exists "Work:Games" (noreq) )
  10.             (set @default-dest "Work:Games")
  11.             (if (exists "JEUX:" (noreq) )
  12.                (set @default-dest "JEUX:")
  13.                (set @default-dest "SYS:")
  14.             )
  15.         )
  16.     )
  17. )
  18.  
  19. (message "\n\n\nThis loader needs the JST program (NOT INCLUDED)\n to be copied in your path\n\n(if you don't have it already)\n\nJST is available from aminet (game/patch) or on my site")
  20.  
  21. (set default-dest
  22. (askdir
  23.     (prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
  24.     (help @askdir-help)
  25.     (default @default-dest)
  26.     (disk)
  27. )
  28. )
  29.  
  30. (set #dest (tackon default-dest @app-name))
  31.  
  32. (set #CI_unit
  33.     (askchoice
  34.         (prompt "From which disk unit do you want\nto install the game")
  35.         (help    @askoptions-help)
  36.         (choices
  37.            "DF0:"
  38.            "DF1:"
  39.            "DF2:"
  40.            "DF3:"
  41.         )
  42.     )
  43. )
  44.  
  45. (set #CI_drive ("DF%ld:" #CI_unit))
  46.  
  47.  
  48. (makedir #dest
  49.     (help @makedir-help)
  50.     (infos)
  51. )
  52.  
  53. ;----------------------------
  54.  
  55. (copyfiles
  56.     (help @copyfiles-help)
  57.     (source "ProjectXHD")
  58.     (dest #dest)
  59.     (infos)
  60. )
  61.  
  62. (copyfiles
  63.     (help @copyfiles-help)
  64.     (source "pxse_hd.readme")
  65.     (dest #dest)
  66.     (infos)
  67. )
  68.  
  69. (message ("\nInsert %s disk 1 into drive %s !" @app-name #CI_drive))
  70.     (if
  71.         (= 0 (run ("rob2file %ld \"%s/ProjectX.d1\" 2 159 123898 OFFSET >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  72.         ("")
  73.         (abort "\"rob2file\" must be in your PATH !")
  74.     )
  75.  
  76. (message ("\nInsert %s disk 2 into drive %s !" @app-name #CI_drive))
  77.     (if
  78.         (= 0 (run ("rob2file %ld \"%s/ProjectX.d2\" 0 159 123898 >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  79.         ("")
  80.         (abort "\"rob2file\" must be in your PATH !")
  81.     )
  82.  
  83. (message ("\nInsert %s disk 3 into drive %s !" @app-name #CI_drive))
  84.     (if
  85.         (= 0 (run ("rob2file %ld \"%s/ProjectX.d3\" 0 159 123898 >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  86.         ("")
  87.         (abort "\"rob2file\" must be in your PATH !")
  88.     )
  89.  
  90.  
  91. (exit)
  92.  
  93.